QT       += core gui serialport

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    ACT/ConfigSaveLoader.cpp \
    ACT/DataLimit.cpp \
    ACT/LogSaver.cpp \
    ACT/MEMSData/MEMSDataCodec.cpp \
    ACT/MEMSData/MEMSDataHandler.cpp \
    ACT/MEMSData/MEMSDataSaver.cpp \
    ACT/Script/ScriptInstruction/ScriptInstruction.cpp \
    ACT/Script/ScriptInstructionFactory.cpp \
    ACT/Script/ScriptRunner.cpp \
    ACT/Script/ScriptSaveLoader.cpp \
#    ACT/Script/StateChecker/StateChecker.cpp \
    ACT/TurnTable/TurnTableCodec.cpp \
    ACT/TurnTable/TurnTableConnectionStateManager.cpp \
    ACT/TurnTable/TurnTableRunningStateManager.cpp \
    IO/FileReader.cpp \
    IO/FileWriter.cpp \
    IO/SerialPortManager.cpp \
    ObjectManager.cpp \
    UI/component/Frame_TurnTableStateShower.cpp \
    UI/component/GroupBox_SetSerialPort.cpp \
    UI/component/LineEdit_ThermostatRate.cpp \
    UI/component/LineEdit_ThermostatTemperature.cpp \
    UI/component/LineEdit_TurnTableAcceleration.cpp \
    UI/component/LineEdit_TurnTablePosition.cpp \
    UI/component/LineEdit_TurnTableRate.cpp \
    UI/component/TreeWidget_DisplayScriptList.cpp \
    UI/component/TreeWidget_EditScriptList.cpp \
    UI/newUI/MemsAutoTestSoftware.cpp \
    UI/newUI/ParameterConsole.cpp \
    UI/newUI/SetMEMSDataDialog.cpp \
    UI/newUI/SetPositionModeDialog.cpp \
    UI/newUI/SetRateModeDialog.cpp \
    UI/newUI/SetScriptDialog.cpp \
    UI/newUI/SetScriptLoopDialog.cpp \
    UI/newUI/SetScriptWaitDialog.cpp \
    UI/newUI/SetThermostatDialog.cpp \
    UI/newUI/SetTurnTableAndThermostatDialog.cpp \
    main.cpp \

HEADERS += \
    ACT/ConfigSaveLoader.h \
    ACT/DataLimit.h \
    ACT/LogSaver.h \
    ACT/MEMSData/MEMSDataCodec.h \
    ACT/MEMSData/MEMSDataHandler.h \
    ACT/MEMSData/MEMSDataSaver.h \
    ACT/Script/ScriptInstruction/ScriptInstruction.h \
    ACT/Script/ScriptInstruction/instruction/InstructionDataReaderStartCollection.h \
    ACT/Script/ScriptInstruction/instruction/InstructionDataReaderStopCollection.h \
    ACT/Script/ScriptInstruction/instruction/InstructionLoop.h \
    ACT/Script/ScriptInstruction/instruction/InstructionThermostatConnect.h \
    ACT/Script/ScriptInstruction/instruction/InstructionThermostatDisconnect.h \
    ACT/Script/ScriptInstruction/instruction/InstructionThermostatTargetTemperature.h \
    ACT/Script/ScriptInstruction/instruction/InstructionThermostatTemperatureRate.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableCloseCircuit.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableConnect.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableDisconnect.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableEmergencyStop.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableOpenCircuit.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTablePositionMode.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTablePowerOff.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTablePowerOn.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableQuitConsole.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableRateMode.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableRun.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableSetLoad.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableStop.h \
    ACT/Script/ScriptInstruction/instruction/InstructionWait.h \
    ACT/Script/ScriptInstructionFactory.h \
    ACT/Script/ScriptRunner.h \
    ACT/Script/ScriptSaveLoader.h \
    ACT/Script/StateChecker/StateChecker.h \
    ACT/TurnTable/TurnTableCodec.h \
    ACT/TurnTable/TurnTableConnectionStateManager.h \
    ACT/TurnTable/TurnTableRunningStateManager.h \
    IO/FileReader.h \
    IO/FileWriter.h \
    IO/SerialPortManager.h \
    ObjectManager.h \
    UI/component/Frame_TurnTableStateShower.h \
    UI/component/GroupBox_SetSerialPort.h \
    UI/component/LineEdit_ThermostatRate.h \
    UI/component/LineEdit_ThermostatTemperature.h \
    UI/component/LineEdit_TurnTableAcceleration.h \
    UI/component/LineEdit_TurnTablePosition.h \
    UI/component/LineEdit_TurnTableRate.h \
    UI/component/TreeWidget_DisplayScriptList.h \
    UI/component/TreeWidget_EditScriptList.h \
    UI/newUI/MemsAutoTestSoftware.h \
    UI/newUI/ParameterConsole.h \
    UI/newUI/SetMEMSDataDialog.h \
    UI/newUI/SetPositionModeDialog.h \
    UI/newUI/SetRateModeDialog.h \
    UI/newUI/SetScriptDialog.h \
    UI/newUI/SetScriptLoopDialog.h \
    UI/newUI/SetScriptWaitDialog.h \
    UI/newUI/SetThermostatDialog.h \
    UI/newUI/SetTurnTableAndThermostatDialog.h


FORMS += \
    UI/component/GroupBox_SetSerialPort.ui \
    UI/newUI/MemsAutoTestSoftware.ui \
    UI/newUI/ParameterConsole.ui \
    UI/newUI/SetMEMSDataDialog.ui \
    UI/newUI/SetPositionModeDialogUi.ui \
    UI/newUI/SetRateModeDialogUi.ui \
    UI/newUI/SetScriptDialogUI.ui \
    UI/newUI/SetScriptLoopDialogUi.ui \
    UI/newUI/SetScriptWaitDialogUi.ui \
    UI/newUI/SetThermostatDialog.ui \
    UI/newUI/SetTurnTableAndThermostatDialog.ui

INCLUDEPATH += \
    ./ACT/ \
    ./ACT/MEMSData/ \
    ./ACT/Script/ScriptInstruction/instruction/ \
    ./ACT/Script/ScriptInstruction/ \
    ./ACT/Script/StateChecker/ \
    ./ACT/Script/ \
    ./ACT/TurnTable/ \
    ./IO/ \
    ./UI/component/ \
    ./UI/newUI/ \

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
